<%@ page import="user.entity.User" %>
<%@ page import="jakarta.servlet.http.HttpSession" %><%--
  Created by IntelliJ IDEA.
  User: Damon
  Date: 2021/4/24
  Time: 10:53
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>客户端信息界面（可修改）</title>
</head>
<body>
</body>
<%User user= (User) request.getAttribute("user");
   HttpSession httpSession= request.getSession();
   httpSession.setAttribute("user4",user);
//response.setHeader("Refresh","60;url=Info.jsp");
%>
<form action="kUpdateServlet" method="post">
    学号:<input type="text" name="uNum" value="<%=user.getNum() %>"/><br/>
    姓名:<input type="text" name="uName" value="<%=user.getName() %>"/><br/>
    性别:<input type="text" name="uSex" value="<%=user.getSex() %>"/><br/>
    年级:<input type="text" name="uGrade" value="<%=user.getGrade() %>"/><br/>
    专业:<input type="text" name="uMajor" value="<%=user.getMajor() %>"/><br/>
    电话:<input type="text" name="uNumber" value="<%=user.getNumber() %>"/><br/>
    方向:<input type="text" name="uDirection" value="<%=user.getDirection() %>"/><br/>
    技能:<input type="text" name="uSkill" value="<%=user.getSkill() %>"/><br/>
    自我介绍:<input type="text" name="uSelf" value="<%=user.getSelf() %>"/><br/>
    密码：<input type="text" name="uPwd" value="<%=user.getPassword() %>"/><br/>
    <input type="submit" value="修改"/></form>

<div>
    <span id="NEXT"></span>
</div>
<script>
    function showTime(i) {
        NEXT.innerHTML = i + "秒后无法修改个人信息!";
        if (i === 0)
            window.location.href = 'Info.jsp';
        i--;
        if (i >= 0)
            setTimeout("showTime(" + i + ")", 1000); //每隔一秒调用showTime()函数
    }
    showTime(60); //倒计时60S
</script>
  </body>

</html>
